Creating Geographic and Map-Based Visualizations in Power BI
Course: Microsoft Power BI Training
Topic: Creating Geographic and Map-Based Visualizations
Course Link: Microsoft Power BI Training – JustAcademy
Demo Link: Register for a Course Demo
Website: JustAcademy
1. Introduction to Geographic and Map-Based Visualizations
Geographic and map-based visualizations in Microsoft Power BI help users analyze business data according to location. They transform geographic information, such as countries, states, cities, postal codes, addresses, latitude, and longitude, into interactive maps.
These visualizations help businesses understand where sales are generated, which locations perform well, where customers are concentrated, and how regional performance differs. Instead of examining rows of location-based data, users can identify spatial patterns visually.
For example, a retail company operating in India can use a map to compare sales across Maharashtra, Gujarat, Karnataka, Delhi, and other states. A darker region or a larger marker can highlight an area with a higher value, depending on the map type and its configuration.
1.1 What Is Geographic Data?
Geographic data describes a real-world location or spatial position. It may identify a named place or provide numerical coordinates.
- Country: India, United States, Canada.
- State or province: Maharashtra, Gujarat, California.
- City: Mumbai, Pune, Bengaluru.
- Postal code: A geographic postal identifier.
- Address: A street address or business location.
- Latitude: A coordinate representing north–south position.
- Longitude: A coordinate representing east–west position.
- Region or territory: A business-defined sales or service area.
1.2 What Is a Map Visualization?
A map visualization displays geographic information on a map and connects it with measures such as revenue, profit, customer count, orders, delivery time, or market share.
Map visuals can display individual locations as markers, represent values using bubbles, color entire geographic regions, show heat concentrations, or display routes and spatial relationships when the selected visual supports those features.
1.3 Business Applications
- Compare sales performance by state, city, or country.
- Identify high-performing and low-performing territories.
- Analyze customer distribution and market coverage.
- Track the geographic distribution of stores and branches.
- Study delivery operations and service coverage.
- Analyze regional profit, revenue, and order volume.
- Explore location-based trends in operations and marketing.
2. Learning Objectives
After completing this topic, learners should be able to:
- Understand the role of geographic data in Power BI.
- Prepare location fields for accurate mapping.
- Configure geographic data categories.
- Distinguish between map visualization types.
- Create point, bubble, and filled-map visualizations.
- Understand latitude, longitude, and geocoding.
- Customize map colors, markers, labels, legends, and tooltips.
- Apply filters, slicers, and cross-filtering to map visuals.
- Troubleshoot incorrect or missing geographic locations.
- Design clear and meaningful geographic reports.
3. Understanding Geographic Data in Power BI
Power BI works best with geographic data that is structured, consistent, and clearly identified. Location columns should be cleaned before they are used in a map visual.
3.1 Common Geographic Fields
| Field |
Example |
Typical Use |
| Country |
India |
Country-level analysis |
| State |
Maharashtra |
Regional comparison |
| City |
Mumbai |
City-level performance |
| Postal Code |
400001 |
Postal-area analysis where supported |
| Latitude |
19.0760 |
North–south position |
| Longitude |
72.8777 |
East–west position |
| Sales |
250000 |
Measure represented on a map |
| Customer Count |
850 |
Customer distribution |
3.2 Example Geographic Dataset
Consider the following sample sales dataset:
| Country |
State |
City |
Sales |
Orders |
| India |
Maharashtra |
Mumbai |
250000 |
520 |
| India |
Maharashtra |
Pune |
175000 |
360 |
| India |
Karnataka |
Bengaluru |
220000 |
450 |
| India |
Gujarat |
Ahmedabad |
140000 |
290 |
| India |
Delhi |
New Delhi |
195000 |
410 |
This dataset can be used to create a map that displays sales by city, state, or country. The same data can also be connected to a bar chart, table, or KPI card to provide additional context.
3.3 Preparing Geographic Fields
Before creating a map, check that geographic values are complete and consistent.
- Remove unnecessary leading and trailing spaces.
- Correct spelling errors in country, state, and city names.
- Use a consistent naming convention.
- Keep postal codes as text when leading zeros are meaningful.
- Separate city, state, and country into distinct columns when possible.
- Remove duplicate records when they are not legitimate business transactions.
- Ensure latitude and longitude fields contain valid numeric values.
- Check that the location fields match the intended level of geographic detail.
4. Setting Geographic Data Categories
Power BI can recognize certain geographic fields automatically, but it is important to verify the data category of each column. Correct categorization helps Power BI interpret a column as a country, state, city, postal code, or coordinate instead of treating it as an ordinary text or numeric field.
4.1 Why Data Categories Matter
Suppose a dataset contains a column called City with the value London. Without sufficient geographic context, a mapping service may identify the wrong place or return an ambiguous result. Adding country and region information helps narrow the location.
4.2 How to Set a Geographic Data Category
- Open Power BI Desktop.
- Switch to the Data view or Model view, depending on your workflow.
- Select the geographic column in the Fields or Data pane.
- Open the Column tools ribbon.
- Locate the Data category option.
- Choose the appropriate category, such as Country/Region, State or Province, City, Postal Code, Latitude, or Longitude.
- Repeat the process for other geographic columns.
- Create or refresh the map and verify that the locations appear correctly.
4.3 Example
If the dataset contains a column named Country, assign the Country/Region category. If it contains a column named Latitude, assign Latitude. Apply Longitude to the longitude column.
Note that the available categories and interface options may vary depending on the field type and Power BI version.
5. Understanding Geocoding
Geocoding is the process of translating a geographic description, such as a city name or address, into a geographic position that can be placed on a map. Power BI map visuals may use a mapping service to resolve location descriptions when coordinates are not supplied directly.
5.1 Example of Geocoding
A source record may contain the following information:
City: Mumbai
State: Maharashtra
Country: India
A mapping service uses this information to identify the corresponding geographic location. If the dataset already contains valid latitude and longitude, those coordinates can help identify the exact point more directly.
5.2 Common Geocoding Problems
- Two places have the same name.
- City or state names are misspelled.
- The country field is missing.
- Location values are stored in inconsistent formats.
- Addresses are incomplete or outdated.
- Postal codes are interpreted incorrectly.
- Coordinates are reversed or entered incorrectly.
5.3 Improving Geocoding Accuracy
- Include country and state information wherever possible.
- Use standardized location names.
- Provide valid latitude and longitude when available.
- Check the data category of each geographic column.
- Validate suspicious points against a reliable source.
- Test ambiguous city names before publishing the report.
6. Overview of Map Visualization Types
Power BI offers different map visualization options for different analytical requirements. The exact options available may depend on the Power BI version, organizational settings, geographic coverage, and enabled features.
| Visualization |
Purpose |
Example |
| Azure Maps |
Flexible mapping with multiple supported layers |
Sales markers, heat maps, or geographic layers |
| Basic Map |
Displays geographic locations as markers or bubbles |
Store locations with bubble sizes based on sales |
| Filled Map |
Colors geographic regions according to values |
Revenue by state |
| Shape Map |
Compares regions using defined shapes |
Sales by custom territory |
| ArcGIS Maps for Power BI |
Offers additional geographic and spatial analysis capabilities |
Market analysis with supported reference layers |
Microsoft's map visualization guidance discusses the available options and their use cases. Refer to the Power BI map visualizations overview for current details.
7. Creating a Basic Map Visualization
A basic map is useful when you want to show individual geographic locations and associate each location with business measures.
7.1 Steps to Create a Basic Map
- Open Power BI Desktop and load a dataset containing geographic information.
- Go to Report view.
- Select the appropriate map visual from the Visualizations pane.
- Drag a field such as City, State, or Country into the Location field well.
- Drag a numeric measure, such as Sales, into the supported size or value field well.
- Add additional fields, such as Customer Count or Profit, if the visual supports them.
- Use the Format visual pane to adjust colors, marker appearance, and other available settings.
- Resize the visual and verify that the displayed locations are correct.
7.2 Example: Store Locations
A retail company can use a map to show its store locations. Each marker represents a city or store, and the marker size may represent revenue or the number of orders, depending on the visual's supported fields.
This allows the business team to quickly identify locations with high activity and investigate locations with comparatively low activity.
7.3 When to Use a Basic Map
- Displaying store or branch locations.
- Comparing sales across cities.
- Exploring customer distribution.
- Identifying geographic clusters of business activity.
- Showing location-level performance alongside other report visuals.
8. Understanding Bubble Maps and Markers
Bubble maps represent data points using markers or circles. Marker size or appearance can communicate a measure, such as revenue, quantity, or customer count, when supported by the selected visual.
8.1 Bubble Size
For example, a city with sales of ₹500,000 may display a larger bubble than a city with sales of ₹100,000. The size scale should be interpreted according to the visual's configuration; marker area and diameter are not necessarily proportional to the underlying measure in a simple linear way.
8.2 Marker Color
Marker colors can distinguish categories such as sales region, store type, or performance group. If conditional formatting is supported, colors can also represent values or status categories.
8.3 Avoiding Overlapping Bubbles
- Zoom into dense areas to inspect individual points.
- Reduce marker size if too many locations overlap.
- Use clustering if the chosen visual supports it.
- Filter the map to a specific region when appropriate.
- Use a table or bar chart when exact comparisons are more important than spatial context.
9. Using Latitude and Longitude
Latitude and longitude provide numeric coordinates for identifying locations on the Earth's surface. They are especially useful when place names are ambiguous or when the data represents precise store, warehouse, customer, or delivery locations.
9.1 Latitude
Latitude describes the north–south position of a point. Values range from -90 to 90 degrees.
9.2 Longitude
Longitude describes the east–west position of a point. Values range from -180 to 180 degrees.
9.3 Example Coordinate Data
| City |
Latitude |
Longitude |
| Mumbai |
19.0760 |
72.8777 |
| New Delhi |
28.6139 |
77.2090 |
| Bengaluru |
12.9716 |
77.5946 |
| Chennai |
13.0827 |
80.2707 |
These are illustrative coordinates. For production reports, verify coordinates against an authoritative geographic data source and the required level of precision.
9.4 Steps to Use Coordinates
- Ensure that latitude and longitude are stored as numeric columns.
- Assign the correct Latitude and Longitude data categories.
- Select a map visual that supports coordinate fields.
- Place the latitude field in the Latitude field well.
- Place the longitude field in the Longitude field well.
- Add an appropriate measure or category.
- Check that the points appear in the expected geographic locations.
9.5 Common Coordinate Errors
- Latitude and longitude values are reversed.
- Coordinates are stored as text instead of numbers.
- Negative signs are missing from coordinates in the southern or western hemispheres.
- Coordinates contain invalid values.
- Coordinates have been rounded too aggressively.
- The aggregation of coordinate fields does not match the intended analysis.
10. Creating Filled Maps
A filled map, also known as a choropleth map, uses different colors or shades to represent values across geographic areas. Instead of placing a marker at each location, it colors regions such as countries or states according to a measure or category.
Filled maps are useful for comparing aggregated values across standardized geographic boundaries. For example, a company can color states according to total sales, average profit, or customer count.
10.1 Example
Imagine that a business has sales data for Maharashtra, Gujarat, Karnataka, and Delhi. A filled map can color these regions based on total sales. A gradient can make lower and higher values visually distinguishable.
10.2 Steps to Create a Filled Map
- Load a dataset with geographic region fields and business measures.
- Choose a filled-map visual or a supported filled-map layer in Azure Maps.
- Add a valid geographic field, such as State or Country, to the Location field well.
- Add the measure that should determine the color, using the visual's supported formatting or value options.
- Configure the color scale or conditional formatting.
- Add useful fields to Tooltips when supported.
- Apply filters to focus on relevant regions.
- Check that the boundaries and values are interpreted correctly.
10.3 When to Use Filled Maps
- Comparing total sales by state or country.
- Displaying market share by region.
- Analyzing average profit across territories.
- Comparing regional customer counts.
- Exploring standardized geographic data, such as rates or percentages.
10.4 Limitations
Filled maps depend on the availability of recognizable geographic boundaries. They are not intended to show precise street addresses as individual points. They can also be misleading when regions have different sizes or when raw totals are compared without considering population, area, or market size.
For more information, read Microsoft's guide to filled maps in Power BI.
11. Working with Azure Maps
Azure Maps is a map visualization option in Power BI that supports multiple ways of presenting spatial data. Depending on the available features and configuration, it can support marker, bubble, heat map, filled map, path, reference, and other geographic layers.
11.1 Why Use Azure Maps?
- Combine different types of geographic information in a map visual.
- Explore location patterns using supported marker and heat-map layers.
- Display geographic areas with filled-map layers.
- Show paths or routes when the appropriate layer and data are available.
- Customize the appearance of map layers.
11.2 Creating an Azure Maps Visual
- Open Power BI Desktop.
- Check whether Azure Maps is available and enabled in your environment.
- Add the Azure Maps visual to the report canvas.
- Place geographic fields or coordinates into the appropriate field wells.
- Add the measures or categories required for the selected layer.
- Configure the layer and formatting options.
- Test zooming, filtering, tooltips, and interactions.
- Save and validate the report before sharing it.
11.3 Administrative and Regional Considerations
Some map visuals or features may depend on tenant settings, supported geographic regions, organizational policies, or licensing. If a visual is unavailable, check the Power BI administrator settings and Microsoft's current documentation.
Microsoft's official setup guide is available at Get started with the Azure Maps Power BI visual.
12. Heat Maps and Geographic Concentration
A heat map highlights areas with a higher concentration or intensity of data points. It uses color intensity to make patterns easier to identify.
12.1 Example
An online retailer may have thousands of customer records across a city. A heat map can help reveal where customer activity is concentrated, assuming the visual is configured with suitable geographic points and measures.
12.2 Steps to Create a Heat Map
- Add an Azure Maps visual or another supported map visual with heat-map capability.
- Provide suitable location or coordinate data.
- Enable or configure the heat-map layer.
- Choose the relevant measure or intensity field if supported.
- Adjust the available radius, intensity, color, or layer settings.
- Zoom into the relevant region and examine the concentration patterns.
12.3 Common Applications
- Customer density analysis.
- Store demand analysis.
- Incident and service-request concentration.
- Delivery demand distribution.
- Marketing campaign response by location.
A heat map should not be interpreted as proof of a causal relationship. It shows a spatial pattern that may require further investigation.
13. Shape Maps and Custom Territories
Shape maps use geographic or custom boundaries to compare regions. Depending on the visual and configuration, custom map shapes may be used for business territories, sales zones, campus layouts, or other nonstandard regions.
13.1 Example
A company may divide a city into North, South, East, and West sales territories. A shape map can color these territories according to sales or profit, provided that the map boundaries and dataset keys are configured correctly.
13.2 Steps to Build a Shape Map
- Prepare a dataset with region identifiers and business measures.
- Obtain a supported geographic or custom shape file, if needed.
- Choose the Shape Map visual when available in your Power BI environment.
- Configure the map boundaries or custom shape source.
- Match the region identifiers in the data to the corresponding map regions.
- Add the measure or category used to color the regions.
- Verify that each data record maps to the intended shape.
13.3 When Shape Maps Are Useful
- Comparing company-defined sales territories.
- Analyzing custom service areas.
- Displaying floor plans or campus regions where supported.
- Representing geographic boundaries not included in a standard map visual.
Feature availability and supported map formats can change. Review the current Power BI visualization documentation before planning a production solution around a specific preview feature.
14. Adding Tooltips to Map Visualizations
Tooltips display additional information when users hover over a marker or region. They help users explore details without placing every field directly on the map.
14.1 Useful Tooltip Fields
- City or region name.
- Total sales.
- Total profit.
- Number of orders.
- Customer count.
- Average order value.
- Sales target achievement.
14.2 How to Configure Tooltips
- Select the map visual.
- Find the Tooltips field well or tooltip configuration in the visual pane.
- Add the measures and fields that are supported by the visual.
- Open the report and hover over a point or region.
- Verify that the values shown are relevant and correctly aggregated.
14.3 Example Tooltip
City: Mumbai
Total Sales: ₹250,000
Total Orders: 520
Average Order Value: ₹480.77
Custom tooltip pages can also be useful when a more detailed explanation is required and the selected visual supports report-page tooltips.
15. Using Legends and Color Scales
Legends explain what marker colors or regional colors represent. A well-designed legend helps users interpret geographic patterns without guessing.
15.1 Categorical Colors
Categorical colors distinguish groups such as region, store type, or sales channel. Each category should have a clearly identifiable color.
15.2 Sequential Color Scales
A sequential color scale represents values from low to high, such as order volume or revenue. A gradual color transition can help users compare regions quickly.
15.3 Diverging Color Scales
A diverging color scale is appropriate when values have a meaningful midpoint, such as profit above or below zero, or performance above or below a target. The midpoint should have a clear business meaning.
15.4 Color Design Best Practices
- Use a consistent meaning for colors throughout the report.
- Provide sufficient contrast between categories.
- Do not rely on color alone to communicate critical information.
- Avoid excessive use of bright colors.
- Use clear labels and legends where appropriate.
- Choose a scale that accurately represents the data.
16. Creating Measures for Map Analysis with DAX
DAX measures allow users to calculate the business values displayed in map visualizations. Measures respond to report filters and the evaluation context of the visual.
16.1 Total Sales
Total Sales = SUM(Sales[SalesAmount])
This measure calculates total sales from the SalesAmount column in the Sales table. Replace the table and column names with those used in your model.
16.2 Total Orders
Total Orders = COUNTROWS(Sales)
This measure counts rows in the Sales table. It is suitable only when each row represents the intended counting unit. If the table contains multiple lines per order, use an appropriate order identifier and counting method.
16.3 Total Profit
Total Profit = SUM(Sales[Profit])
This measure calculates total profit, assuming the Profit column already contains the correct profit value for each row.
16.4 Profit Margin
Profit Margin =
DIVIDE([Total Profit], [Total Sales], 0)
This measure divides total profit by total sales and returns zero when the denominator is zero. Format the result as a percentage in Power BI.
16.5 Average Order Value
Average Order Value =
DIVIDE([Total Sales], [Total Orders], 0)
This example uses the Total Orders measure as the denominator. If order rows are duplicated, replace it with a distinct order-count measure.
16.6 Using Measures on a Map
- Create the required measures in the data model.
- Select the map visual.
- Add the measure to the relevant supported field well or formatting option.
- Check the aggregation and filter context.
- Compare the map results with a table or matrix to validate the values.
17. Applying Filters and Slicers
Filters and slicers allow report users to narrow the locations or values displayed on a map. For example, users can display sales for one year, one product category, or one region.
17.1 Types of Filters
- Visual-level filter: Filters data for one visual.
- Page-level filter: Filters visuals on a report page.
- Report-level filter: Filters data throughout the report.
- Slicer: Provides an interactive control for filtering.
17.2 Example: Sales by Year
- Add a Year field to a slicer.
- Select a year, such as 2026, if the dataset contains that year.
- Observe how the map updates.
- Confirm that the map and related charts respond as expected.
17.3 Example: Product Category
A product-category slicer can allow users to compare the geographic distribution of electronics, clothing, furniture, or other categories. This is particularly useful when a company operates in several markets.
18. Cross-Filtering and Cross-Highlighting
Power BI visuals can interact with one another. Selecting a region on a map may filter or highlight data in other visuals, depending on the interaction settings and the visual's capabilities.
18.1 Example
A report page contains a map, a bar chart of sales by product, and a card showing total sales. When a user selects Maharashtra on the map, the bar chart and card may update to reflect the selected region.
18.2 Configuring Visual Interactions
- Select the visual that should control other visuals.
- Open the Format ribbon and select Edit interactions, where available.
- Review the interaction icons displayed on other visuals.
- Choose the desired filtering, highlighting, or no-interaction behavior.
- Exit interaction-editing mode.
- Test the report by selecting several map locations.
18.3 Benefits
- Enables interactive geographic exploration.
- Connects regional performance to product or customer metrics.
- Reduces the need for separate reports for every region.
- Helps users investigate differences across locations.
19. Creating a Geographic Sales Dashboard
A geographic sales dashboard combines a map with supporting visuals to provide a clear view of location-based business performance.
19.1 Recommended Dashboard Components
- Map: Sales or orders by city, state, or territory.
- KPI card: Total sales.
- KPI card: Total profit.
- Bar chart: Top-performing regions.
- Line chart: Sales trends over time.
- Slicers: Date, category, and region.
- Table or matrix: Exact regional figures.
19.2 Suggested Layout
- Place the report title at the top.
- Position KPI cards beneath the title.
- Place the main map in a prominent central area.
- Use a bar chart to compare regional performance.
- Add a time-series chart to show trends.
- Place slicers in a consistent, easy-to-find area.
- Keep legends and labels readable.
19.3 Dashboard Design Principles
- Focus on the business questions the report should answer.
- Avoid overcrowding the map with too many data points.
- Use the correct level of geographic detail.
- Make the meaning of color and bubble size clear.
- Keep number formats and units consistent.
- Check the report at different screen sizes.
20. Data Modeling Considerations for Geographic Reports
A reliable data model is important for accurate geographic analysis. Location fields often belong in a dedicated location or geography dimension table that connects to sales, orders, customers, or other fact tables.
20.1 Example Data Model
Geography
---------
GeographyKey
Country
State
City
PostalCode
Latitude
Longitude
Sales
-----
SalesKey
GeographyKey
ProductKey
DateKey
SalesAmount
Profit
OrderID
In this example, the Geography table stores location attributes while the Sales table stores transactions. A relationship through GeographyKey allows the report to analyze sales by location.
20.2 Benefits of a Geography Dimension
- Reduces repeated location descriptions.
- Improves consistency in geographic names.
- Supports a clear relationship between locations and transactions.
- Makes it easier to maintain latitude and longitude.
- Supports reusable regional hierarchies.
20.3 Validate Relationships
Ensure that keys are consistent and that the relationship cardinality and filter direction suit the model. Incorrect relationships can produce duplicated totals, missing data, or unexpected map results.
21. Geographic Hierarchies and Drill-Down
A geographic hierarchy organizes location fields from broader areas to more detailed locations. A typical hierarchy is Country, State, City, and Postal Code.
21.1 Example Hierarchy
Country
└── State
└── City
└── Postal Code
21.2 Why Hierarchies Are Useful
- Start with an overall view of the market.
- Explore a particular country or state.
- Investigate city-level performance.
- Move from summary-level analysis to greater detail.
Drill-down behavior depends on the visual and the fields configured. Not every map type supports every hierarchy interaction in the same way. Test the selected visual to confirm its behavior.
22. Troubleshooting Geographic and Map Visualizations
| Problem |
Possible Cause |
Suggested Solution |
| Locations do not appear |
Invalid or ambiguous location data |
Clean location fields and add country or state context. |
| Points appear in the wrong place |
Incorrect geocoding or coordinates |
Verify coordinates and geographic categories. |
| All records appear at one point |
Location field or aggregation issue |
Review the field wells and data model. |
| Filled map does not show boundaries |
Unsupported or unrecognized geographic area |
Verify the geographic field and the map type. |
| Map visual is unavailable |
Tenant setting, feature availability, or organizational restriction |
Check Power BI settings and consult the administrator. |
| Map loads slowly |
Too many points or complex data |
Filter data, aggregate records, or reduce visual complexity. |
| Wrong sales total appears |
Incorrect relationships or aggregation |
Validate relationships and compare totals with a table. |
| Bubble sizes look misleading |
Poor scale or excessive variation |
Review the size field, scale, and selected visual. |
| Duplicate locations appear |
Multiple records represent the same location |
Aggregate data where appropriate or use a unique location key. |
| Map interactions do not work |
Interaction settings or model relationships |
Review Edit interactions and verify model relationships. |
22.1 Troubleshooting Checklist
- Are location columns complete and correctly spelled?
- Are geographic data categories assigned correctly?
- Are latitude and longitude numeric and in the correct order?
- Are ambiguous places supported by country or region fields?
- Are filters excluding the expected data?
- Do map totals match totals in a table or matrix?
- Is the selected map visual enabled in the environment?
- Are organizational network and privacy requirements satisfied?
23. Performance Optimization
Map visuals may become slow when they contain a large number of points, complicated tooltips, or expensive calculations. A well-designed model and an appropriately aggregated dataset can improve responsiveness.
23.1 Recommended Techniques
- Remove unused columns from the model.
- Aggregate transaction-level data to an appropriate geographic level when detailed points are unnecessary.
- Use efficient DAX measures.
- Limit the number of map visuals on a report page.
- Reduce unnecessary visual complexity.
- Use filters to focus on relevant locations.
- Test report responsiveness with realistic data volumes.
- Review relationships and avoid unnecessary many-to-many relationships.
23.2 Choosing the Right Geographic Detail
If the business question concerns sales by state, plotting every individual transaction may not add value. A state-level map may be faster and easier to interpret. Use individual points only when their precise locations are important to the analysis.
24. Privacy, Security, and Geographic Data
Geographic data can be sensitive, particularly when it identifies individual customers, homes, or precise movements. Before sharing map reports, consider the sensitivity of the data and the mapping service being used.
- Follow organizational policies for handling personal information.
- Share reports only with authorized users.
- Apply appropriate row-level security when required.
- Avoid exposing exact customer addresses when city- or region-level analysis is sufficient.
- Review the geographic information processed by external mapping services.
- Confirm that the selected visual complies with organizational and regulatory requirements.
- Use aggregated or anonymized location data when appropriate.
Power BI map features may transmit geographic fields to mapping services to resolve locations. Review the documentation and privacy requirements for the visual and service you use before publishing a report with sensitive data.
25. Practical Project: Regional Sales Performance Map
Project Objective: Create an interactive Power BI report that compares sales performance across geographic regions.
25.1 Dataset Requirements
Create or import a dataset containing the following fields:
- Country
- State
- City
- Sales Amount
- Profit
- Order ID
- Order Date
- Product Category
- Latitude and Longitude, if available
25.2 Project Steps
- Import the dataset into Power BI Desktop.
- Clean city, state, and country values.
- Set the correct data categories for geographic fields.
- Check numeric data types and coordinate validity.
- Create measures for Total Sales, Total Profit, Total Orders, and Profit Margin.
- Create a map visual showing the appropriate geographic level.
- Configure marker size, color, or filled regions according to the business question.
- Add tooltips with sales, profit, and order information.
- Add slicers for year, product category, and region.
- Add KPI cards and a regional comparison chart.
- Test map interactions with the other visuals.
- Compare map totals with a table or matrix.
- Format the report and save the Power BI file.
25.3 Expected Outcomes
- Identify the highest-performing geographic regions.
- Compare sales and profit across locations.
- Explore changes by year or product category.
- Find areas that may need additional business attention.
- Present regional performance in an interactive report.
26. Hands-On Exercises
Exercise 1: City-Level Sales Map
Create a map that displays sales by city. Add a tooltip containing total sales and order count. Verify at least three locations against a table.
Exercise 2: Regional Profit Map
Create a filled map, where supported, that compares profit across states or regions. Use a color scale that distinguishes positive and negative performance when appropriate.
Exercise 3: Customer Distribution
Build a map showing customer locations or aggregated customer counts. Identify areas with higher customer concentration and explain what the pattern might mean for the business.
Exercise 4: Map with Slicers
Add slicers for year and product category. Test how the map responds to different combinations and confirm that the totals are correct.
Exercise 5: Troubleshooting
Intentionally test a dataset with an ambiguous city name or incorrect coordinate. Identify the issue, correct the field or value, and confirm that the map displays the intended location.
27. Interview Questions and Answers
Q1. What is a geographic visualization in Power BI?
A geographic visualization displays data using geographic locations, such as countries, states, cities, postal codes, or coordinates, to help users understand spatial patterns.
Q2. What is geocoding?
Geocoding translates a location description, such as a city or address, into geographic coordinates that can be placed on a map.
Q3. Why are geographic data categories important?
They help Power BI interpret columns correctly as geographic fields, improving the chance that locations are identified and mapped accurately.
Q4. What is the difference between a basic map and a filled map?
A basic map typically displays individual locations as markers or bubbles, while a filled map colors geographic areas to represent values or categories.
Q5. What are latitude and longitude?
Latitude represents a position north or south of the equator. Longitude represents a position east or west of the prime meridian.
Q6. When should you use a filled map?
Use a filled map when you want to compare a measure across defined geographic areas, such as states, countries, or supported regions.
Q7. What is a heat map?
A heat map uses color intensity to represent concentration or intensity across geographic points or areas, helping users identify spatial patterns.
Q8. What is Azure Maps in Power BI?
Azure Maps is a Power BI map visualization option that supports multiple spatial layers and geographic presentation capabilities, depending on its configuration and available features.
Q9. How can you improve the accuracy of map locations?
Clean geographic values, provide country or state context, set correct data categories, use valid coordinates where available, and verify ambiguous locations.
Q10. Why might a location appear in the wrong place?
The location name may be ambiguous, the geographic category may be incorrect, or the latitude and longitude values may be invalid or reversed.
Q11. What are map tooltips?
Tooltips display additional information when users hover over a map marker or region, such as sales, profit, or customer count.
Q12. How do slicers help map analysis?
Slicers let users filter the map by criteria such as date, product category, or sales region.
Q13. What is cross-filtering?
Cross-filtering allows selections in one report visual to filter data in other visuals, subject to the model relationships and interaction settings.
Q14. How can you improve map performance?
Aggregate data appropriately, reduce unnecessary points and visuals, optimize measures and relationships, and filter the report to relevant geographic areas.
Q15. What privacy considerations apply to map visualizations?
Location data can reveal sensitive information. Reports should follow access controls and privacy policies, and users should understand which location fields may be processed by mapping services.
28. Quick Revision Notes
- Geographic visualizations display data in a spatial context.
- Geographic fields include country, state, city, postal code, latitude, and longitude.
- Clean and standardized location data improves mapping accuracy.
- Geographic data categories help Power BI interpret location fields.
- Geocoding converts location descriptions into geographic positions.
- Basic maps display individual locations as markers or bubbles.
- Filled maps color defined regions according to data values.
- Azure Maps supports multiple geographic layers, depending on configuration.
- Heat maps highlight concentration and intensity patterns.
- Shape maps can represent geographic or custom territories.
- Tooltips display supporting details without overcrowding the map.
- Legends and color scales make map values easier to interpret.
- DAX measures can calculate sales, profit, order count, and margin.
- Filters and slicers support interactive geographic analysis.
- Cross-filtering connects map selections with other report visuals.
- Validate coordinates, relationships, filters, and totals during troubleshooting.
- Optimize the data model and visual complexity for better performance.
- Protect sensitive location data before publishing reports.
29. Best Practices for Map-Based Reports
- Start with a clearly defined business question.
- Choose the map type that best matches the analysis.
- Use geographic fields at the correct level of detail.
- Verify geographic categories and coordinate values.
- Use appropriate colors and clearly labeled legends.
- Provide helpful tooltips for additional detail.
- Use supporting charts and KPI cards for precise comparisons.
- Test filters and visual interactions.
- Compare map values with tables or matrices to validate calculations.
- Reduce unnecessary visual complexity.
- Review the map's performance with realistic data volumes.
- Follow data privacy, security, and organizational requirements.
30. Official Learning Resources
31. Conclusion
Geographic and map-based visualizations are valuable tools for analyzing business performance by location in Power BI. They help users identify regional patterns, compare sales and profit, understand customer distribution, and explore spatial relationships interactively.
To create reliable map reports, prepare geographic data carefully, assign the correct data categories, choose a suitable map type, configure measures and tooltips, and test filters and interactions. Always validate map results against the underlying data and consider performance, privacy, and readability before publishing.
With practice, learners can build interactive geographic reports that turn location-based data into meaningful business insights.